/*
 * @Author: zhangjiayong lomgmple.com@outlook.com
 * @Date: 2024-10-07 20:55:26
 * @LastEditors: zhangjiayong lomgmple.com@outlook.com
 * @LastEditTime: 2024-10-20 11:19:47
 * @FilePath: \beisai\src\router\index.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE@
 */
import Vue from 'vue';
import VueRouter from 'vue-router';

// 懒加载
const home = () => import('@/views/layout/HomeView.vue');
const login = () => import('@/views/login/loginView.vue');
const shop = () => import('@/views/shop/shopView.vue');
const carbortoy = () => import('@/views/carbortoy/carbortoyVIew.vue');

Vue.use(VueRouter);

const routes = [
	{
		path: '/',
		name: 'home',
		component: home
	},
	{
		path: '/login',
		name: 'login',
		component: login
	},
	{
		path: '/shop',
		name: 'shop',
		component: shop
	},
	{
		path: '/carbortoy',
		name: 'carbortoy',
		component: carbortoy
	}
];
const router = new VueRouter({
	routes
});

export default router;
